package services;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import modelo.Caracteristicaxsalon;
import modelo.Domicilio;
import modelo.Imagenesxsalon;
import modelo.Salon;
import modelo.Telefonosalon;
import modelo.Tipoevento;
import dao.SalonDao;
import dao.SalonWebDao;

@ManagedBean(name = "salonWebService", eager = true)
@ApplicationScoped
public class SalonWebService implements Serializable {

	private static final long serialVersionUID = 3887722204575627500L;
	private Salon salon;
	private SalonWebDao salonWebDao;
		
	public SalonWebService() {
		super();
		this.salon = new Salon();
		this.salonWebDao = new SalonWebDao();
				
	}
	
	public Salon getSalon() {
		return salon;
	}

	public void setSalon(Salon salon) {
		this.salon = salon;
	}
	
	

	public SalonWebDao getSalonWebDao() {
		return salonWebDao;
	}

	public void setSalonWebDao(SalonWebDao salonWebDao) {
		this.salonWebDao = salonWebDao;
	}

	public void registrarCita(int idSalon) {
		salonWebDao.registrarCita(idSalon);
		
	}
	
	
	
}
